import mysqlhelper

sqlhelp = mysqlhelper.MysqlHelper('localhost', 3306, 'shuoGG', 'root','ut123456')
sqlhelp.connect()
sql = "select sname,sgender from student where sname=%s"
params = ('小刚',)
result1 = sqlhelp.get_one(sql, params)
print(result1)

sql = "insert into student(sname,sgender) values(%s,%s)"
params = ('小光', 0)
count = sqlhelp.insert(sql, params)
print(count)

sqlhelp.close()
